<% content_for :left_sidebar do  %>
  <%= render :partial => "layouts/sidebar/xiwenguanli" %>
<% end %>
<%- model_class = Notify -%>
<div class="page-header">
  <h1>统计（个人）</h1><a href="/admins/jifens" class = "btn btn-info btn-sm" target="_blank">单位 </a> | <a href="/admins/jifens/about" class = "btn btn-info btn-sm" target="_blank">说明 </a>
  
  
  <%= form_tag admins_jifengerens_path,:method => :get do %>
  	<tr>
        <td> 发布时间:
        <%= text_field_tag :news_begin,session[:news_begin],:class => 'datepicker' %>~
        <%= text_field_tag :news_end,session[:news_end],:class => 'datepicker' %>
          <script type="text/javascript">
          $(document).ready(function(){
            $('.datepicker').datepicker({
                format: 'yyyy-mm-dd'
            });
          });
        </script>
        </td>
     </tr>   
     <tr>
        <td colspan="6">
          <%= select_button %>
        </td>
      </tr>	
  <% end %>
  
  <table class="table table-striped">

  <thead>
    <tr>
      <th>单位</th>
      <th>篇数</th>
      <th >采用</th>
      <th >采用率</th>
      <th >上传排名</th>
      <th >采用率排名</th>
    </tr>
  </thead>


  <tbody>
    <% @tongj.each do |jifang| %>
     <tr>
        <td><%= jifang["department"] %></td>
         <td><%= jifang["sc"] %></td>
          <td><%= jifang["cy"] %></td>
          <td><%= jifang["cyl"] %>%</td>
          <td><%= jifang["scp"] %></td>
          <td><%= jifang["cylp"] %></td>
          
      </tr>  
    <% end %>
    </tbody>
    </table>
</div>



<script src="/My97DatePicker/WdatePicker.js"></script>